﻿using System;
using System.Collections.Generic;

using RexToy.L10N;

namespace RexToy.UI.WinForm.Pmlx
{
    static class L10NHelper
    {
        public static void SetL10nText(PmlxNode pAttr, IReflector r)
        {
            var l10n = L10NContext.GetLocalization();
            r.SetPropertyValue(pAttr.LocalName, l10n.Localize(pAttr.Value));
        }
    }
}
